package com.matt.repository.cookbook;

import com.matt.domain.cookbook.Recipe;
import com.matt.domain.cookbook.RecipeFood;
import com.matt.domain.cookbook.RecipeIngredients;
import com.matt.domain.cookbook.RecipeShow;
import com.matt.service.cookbook.impl.RecipeIngredientsServiceImpl;

import java.util.List;
import java.util.Map;

public interface RecipeNativeRepository {

    //RecipeFood
    List<RecipeFood> selectRecipeFoodListByCondition(Map<String, Object> filter);

    List<Map<String, Object>> selectRecipeFoodByFilter(Map<String, Object> params);


    //RecipeIngredients
    List<RecipeIngredients> selectRecipeIngredientsByCondition(Map<String, Object> filter);

    //Recipe
    List<Map<String, Object>> selectRecipeFoodByTime(Map<String, Object> filter);

    List<Recipe> selectRecipeListByCondition(Map<String, Object> filter);

    String selectEarlyRecipeDateByAreaId(String areaId);

    List<String> selectAreaIdsByTime(String begin, String end);

    List<Map<String, Object>> selectRecipeTypeIdByTimeAndAreaId(String recipeDate, String areaId);

    //RecipeShow
    List<RecipeShow> selectRecipeShowListByCondition(Map<String, Object> filter);


}
